package com.crrc.dataparse.entity;

import java.io.Serializable;

public class Temp2TreatPK implements Serializable {
    public Template template;
    public TempTreClass templateTreat;

    public Temp2TreatPK() {
    }
    @Override
    public int hashCode() {
        return (this.template.getOid() + this.templateTreat.getOid()).hashCode();
    }
    @Override
    public boolean equals(Object obj) {
        if (obj == this) {
            return true;
        } else if (!(obj instanceof Temp2TreatPK)) {
            return false;
        } else if (obj == null) {
            return false;
        } else {
            Temp2TreatPK pk = (Temp2TreatPK)obj;
            return pk.template.equals(this.template) && pk.templateTreat.equals(this.templateTreat);
        }
    }
}
